package com.zby.admin.pojo;

import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import org.dromara.autotable.annotation.AutoColumn;
import org.dromara.autotable.annotation.AutoTable;

@Data
@AutoTable
@TableName("address")
public class Address extends BasePojo {
    
    /**
     * 用户ID
     */
    @AutoColumn(comment = "用户ID")

    private Long userId;
    
    /**
     * 收货人姓名
     */
    @AutoColumn(comment = "收货人姓名")
    private String receiverName;
    
    /**
     * 收货人手机号
     */
    @AutoColumn(comment = "收货人手机号")
    private String receiverPhone;
    
    /**
     * 省份
     */
    @AutoColumn(comment = "省份")
    private String province;
    
    /**
     * 城市
     */
    @AutoColumn(comment = "城市")
    private String city;
    
    /**
     * 区/县
     */
    @AutoColumn(comment = "区/县")
    private String district;
    
    /**
     * 详细地址
     */
    @AutoColumn(comment = "详细地址")
    private String detailAddress;
    
    /**
     * 是否默认地址 (0-不是默认地址，1-是默认地址)
     */
    @AutoColumn(defaultValue = "0", comment = "是否默认地址 (0-不是默认地址，1-是默认地址)")
    private Integer isDefault;
    
    /**
     * 邮政编码
     */
    @AutoColumn(comment = "邮政编码")
    private String postalCode;
}
